package com.example.hospitalManage.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @projectName: hospitalManage
 * @package: com.example.hospitalManage.utils
 * @className: ResponseResult
 * @author: GCT
 * @description: TODO
 * 定义响应结果的统一格式，这里定义响应结果由三个要素构成
 * @date: 2022/12/17 18:52
 * @version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResponseResult<T> {
    //1.状态码
    private int code;
    //2.消息
    private String msg;
    //3.返回数据
    private  T  data;

}
